package com.permissions.dispatcher.processor.impl;

import com.squareup.javapoet.MethodSpec;
/**
 * 敏感权限接口
 */
public interface SensitivePermissionInterface {
    /**
     * 敏感权限接口 条件
     * @param builder builder
     * @param activityVar activityVar
     * @param permissionField permissionField
     */
    void addHasSelfPermissionsCondition(MethodSpec.Builder builder, String activityVar, String permissionField);
    /**
     * 敏感权限接口 状态
     * @param builder builder
     * @param targetParam targetParam
     * @param activityVar activityVar
     * @param requestCodeField requestCodeField
     */
    void addRequestPermissionsStatement(
            MethodSpec.Builder builder, String targetParam, String activityVar, String requestCodeField);
}
